package com.gict.antifraudback.result;

import com.gict.antifraudback.exception.assertion.BusinessExceptionAssert;
import lombok.Getter;

/**
 * @Description: 自定义参数枚举
 **/
@Getter
public enum ResultEnum implements BusinessExceptionAssert {

    CODE_1(1, "操作成功！"),
    CODE_2(2, "操作失败！"),
    CODE_3(3, "用户未登陆！"),
    CODE_4(4, "账号或者密码错误！"),
    CODE_5(5, "图像数据为空！"),
    CODE_6(6, "图像数据传输异常！"),
    CODE_7(7, "图片上传大小不能超过5M！"),
    CODE_8(8, "图片上传格式错误！"),
    CODE_9(9, "手机号码不能为空！"),
    CODE_10(10, "短信验证码不能为空！"),

    CODE_401(401, "账号或者密码错误！"),
    CODE_403(403, "没有获取授权！"),
    CODE_404(404, "找不到该路径！"),
    CODE_405(405, "请求方式错误！"),
    CODE_415(415, "请求参数格式错误！"),

    // CODE_500(500, "服务器出错了，请联系后台开发人员！"),
    CODE_500(500, "系统开小差，请稍后再试！"),
    /**
     * param check
     */
    APP_ID_NOT_FOUND(600, "appId不能为空！"),
    WX_LOGIN_CODE_NOT_FOUND(601, "登录凭证code不能为空！"),
    ENCRYPTED_DATA_NOT_NULL(602, "加密数据不能为空！");

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
